/*
 * @Author: lilin_:）
 * @version: 1.0
 * @Descripttion:获取发票台账数据
 * @Date: 2021-07-03 10:55:46
 * @LastEditors: sueRimn
 * @LastEditTime: 2021-09-02 16:46:23
 */
import request from '/@/utils/request';


/**
 * @Author: lilin_:）
 * @name: 添加通讯录
 * @Descripttion: 
 * @param {object} data
 * @return {*}
 */
export function axios_contactsAdd(data: object) {
	return request({
		url: '/contacts/add',
		method: 'post',
		data: data,
	});
}



/**
 * @Author: lilin_:）
 * @name: 编辑
 * @Descripttion: 
 * @param {object} data
 * @return {*}
 */
export function axios_contactsup(data: object) {
	return request({
		url: '/contacts/up',
		method: 'post',
		data: data,
	});
}



// 删除通讯
export function axios_contactsdel(data: object) {
	return request({
		url: '/contacts/del',
		method: 'post',
		data: data,
	});
}


//出纳明细账--------------------------

// 获取出纳的列表

export function axios_cashierselList(data:any) {
	return request({
		url: '/cashier/selList',
		method: 'post',
		params:data
	});
}


// 出纳删除

export function axios_cashierdel(data:any) {
	return request({
		url: '/cashier/del',
		method: 'post',
		data
	});
}

// 出纳编辑
export function axios_cashierup(data:any) {
	return request({
		url: '/cashier/up',
		method: 'post',
		data
	});
}

//新增明细
export function axios_cashieradd(data:any) {
	return request({
		url: '/cashier/add',
		method: 'post',
		data
	});
}

//计算商票台账余额
export function axios_cashierselValue_tb(params:any) {
	return request({
		url: '/cashier/selValue_tb',
		method: 'get',
		params
	});
}


// 计算银行存款余额
export function axios_cashierserselValue_bb(params:any) {
	return request({
		url: '/cashier/selValue_bb',
		method: 'get',
		params
	});
}





// 获取银行数据
export function axios_bankselList() {
	return request({
		url: '/bank/selList',
		method: 'get',
	});
}


// 新增银行
export function axios_bankadd(data: object) {
	return request({
		url: '/bank/add',
		method: 'post',
		data
	});
}
// 编辑银行
export function axios_bankup(data: object) {
	return request({
		url: '/bank/up',
		method: 'post',
		data
	});
}



// 银行数据的删除
export function axios_bankdel(data: object) {
	return request({
		url: '/bank/del',
		method: 'post',
		data
	});
}



/**
 * 用户退出登录
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export function signOut(params: object) {
	return request({
		url: '/user/signOut',
		method: 'post',
		data: params,
	});
}
